package org.jeecg.modules.demo.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CCommon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 通用方法
 * @Author: jeecg-boot
 * @Date:   2025-06-24
 * @Version: V1.0
 */
public interface CCommonMapper extends BaseMapper<CCommon> {


    @Select("SELECT ${columnName} as name  FROM ${tableName} WHERE id = #{id}")
    String translatData(@Param("columnName") String columnName, @Param("tableName") String tableName, @Param("id") String id);

}
